package com.neusoft.neuiotms.dcom.repository.alter;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcom.model.alter.AlterApplyForm;

public interface AlterApplyFormRepository extends JpaRepository<AlterApplyForm, Long> {

    AlterApplyForm findByWorkNumAndTaskId(String workNum, String taskId);

    List<AlterApplyForm> findByFrontlineEngineerCode(String frontlineEngineerCode);

    AlterApplyForm findTopByWorkNumOrderByIdDesc(String workNum);

    void deleteByWorkNum(String workNum);

    List<AlterApplyForm> findByServiceUnitCodeIn(List<String> serviceUnitCodeArr);

}
